package cn.terminus.client.customer.custompurposeroom.service;

import java.util.Date;

import cn.terminus.client.customer.custompurposeroom.param.CustomPurposeRoomNewParam;
import cn.terminus.client.customer.custompurposeroom.param.CustomPurposeRoomEditParam;
import cn.terminus.client.customer.custompurposeroom.param.CustomPurposeRoomQueryParam;
import cn.terminus.client.customer.custompurposeroom.param.CustomPurposeRoomDeleteParam;
import cn.terminus.client.customer.custompurposeroom.param.CustomPurposeRoomGetsParam;
import cn.terminus.client.customer.custompurposeroom.result.CustomPurposeRoomResult;

import cn.terminus.result.common.result.TerminusResult;
import cn.terminus.result.common.page.TerminusPageAble;
import cn.terminus.result.common.page.TerminusPageInfo;
import cn.terminus.result.common.exception.DataAccessException;
import cn.terminus.result.common.exception.ServiceException;
import cn.terminus.result.common.context.TerminusCallContext;

import java.util.List;

/**
 * (CustomPurposeRoom)表服务接口
 *
 * @author makejava
 * @since 2021-07-08 11:18:58
 */
public interface CustomPurposeRoomService {

    /**
     * 新增
     *
     * @param param
     * @param context
     * @return
     * @throws ServiceException
     */
    TerminusResult<String> add(CustomPurposeRoomNewParam param, TerminusCallContext context) throws ServiceException;

    /**
     * 更新
     *
     * @param param
     * @param context
     * @return
     * @throws ServiceException
     */
    TerminusResult<Boolean> update(CustomPurposeRoomEditParam param, TerminusCallContext context) throws ServiceException;


    /**
     * gets
     *
     * @param param
     * @param context
     * @return
     * @throws ServiceException
     */
    TerminusResult<List<CustomPurposeRoomResult>> gets(CustomPurposeRoomGetsParam param, TerminusCallContext context) throws ServiceException;

    /**
     * 删除
     *
     * @param param
     * @param context
     * @return
     * @throws ServiceException
     */
    TerminusResult<Boolean> delete(CustomPurposeRoomDeleteParam param, TerminusCallContext context) throws ServiceException;

    /**
     * 查询
     *
     * @param param
     * @param context
     * @return
     * @throws ServiceException
     */
    TerminusResult<List<CustomPurposeRoomResult>> query(CustomPurposeRoomQueryParam param, TerminusCallContext context) throws ServiceException;

    /**
     * 分页查询
     *
     * @param param
     * @param page
     * @param context
     * @return
     * @throws ServiceException
     */
    TerminusResult<TerminusPageAble<CustomPurposeRoomResult>> page(CustomPurposeRoomQueryParam param, TerminusPageInfo page, TerminusCallContext context) throws ServiceException;
}
